package com.hao.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * StaAppliaction
 *
 * @author chenWenHao
 * @date 2021年1月27日
 *  数据统计服务模块
 *      @EnableScheduling: 开启定时任务
 */
@EnableScheduling
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@MapperScan("com.hao.staservice.mapper")
@ComponentScan(basePackages = {"com.hao"})
public class StaAppliaction {
    public static void main(String[] args) {
        SpringApplication.run(StaAppliaction.class,args);
    }
}
